This is part of scalecube-js project, see more at https://github.com/scalecube/scalecube-js
Full documentation
Index
Index is responsible for picking the right Item from a Item[].
Default
Pick the first available item.
This is very good option for monolith (When all the services are one the same microservice instance) applications built with scalecube
RetryRouter
Pick the first available item, Retry if service not found
period
- interval between retry, maxRetry
- how much retries before giving up
This is the prefer behavior for browsers
RoundRobin
Pick the next item from a list of available items.
This is very common router for servers